GtkIMModule: Use default screen when determining context id
authorMatthias Clasen <mclasen@redhat.com>
Sun, 11 Aug 2013 19:35:07 +0000 (15:35 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 11 Aug 2013 19:38:25 +0000 (15:38 -0400)
commitf4a138c7bd9baf56685b4c8193f1371530a8f028
tree9b91ca58fca5533d65ad5bfe65e6d2a8d5d12fa5
parent87257342de456c936cf9dab63b9aaa9402b84e68
GtkIMModule: Use default screen when determining context id

This code is called early on, without a window, and then later on
with a window. Currently, it returns different results for these
cases when the setting contains a value. That leads to pointless
construction and destruction of im contexts. Instead, just look
at the settings of the default screen. In practice, there is only
one screen, ever.
gtk/gtkimmodule.c